<template>
  <div class="d-descs-box">
    <!-- 第一块 -->
    <div class="d-des1">
      <span class="sp"> <span></span> {{username}}简介</span>
      <p class="p1">
        {{Desc.briefDesc}}
      </p>
    </div>
    <!-- 第二快 -->
    <div class="d-des2" v-for="(desclist,index) in Desc.introduction" :key="index">
      <span class="sp">{{desclist.ti}}</span>
      <p>{{desclist.txt}}</p>
    </div>

  </div>
</template>

<script>
export default {
  props:['username'],
  name: "Descs",
  data() {
    return {
      id: this.$route.query.id,
      Desc:{}
    };
  },
  mounted() {
    this.getArtistDesc();
  },
  methods: {
    // 获取歌手详情reqArtistDesc
    async getArtistDesc() {
      const result = await this.$API.reqArtistDesc(this.id);
      //   console.log(result)
      if (result.code == 200) {
        this.Desc = result || {};
      }else{
        this.$msg.error("获取歌手详情失败")
        }
    },
   
  },
};
</script>

<style lang="less" scoped>
.d-descs-box {
  //   margin-top: 30px;
  p {
    display: block;
    margin-top: 10px;
    line-height: 25px;
    color: #666;
    font-size: 13px;
  }
  .p1 {
    text-indent: 2em;
  }
}
.sp {
  display: inline-block;
  margin-top: 20px;
  font-size: 14px;
  color: #333;
  font-weight: bold;
  line-height: 20px;

  span {
    display: inline-block;
    width: 3px;
    height: 13px;
    line-height: 20px;
    background-color: red;
  }
}
</style>
